package com.github.cakin.shiro.chapter23.remote;

import java.io.Serializable;
import java.util.Set;

/**
 * @className: PermissionContext
 * @description: 权限上下文
 * @date: 2020/6/1
 * @author: cakin
 */
public class PermissionContext implements Serializable {
    /**
     * 角色集
     */
    private Set<String> roles;
    /**
     * 权限集
     */
    private Set<String> permissions;

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles( Set<String> roles ) {
        this.roles = roles;
    }

    public Set<String> getPermissions() {
        return permissions;
    }

    public void setPermissions( Set<String> permissions ) {
        this.permissions = permissions;
    }


    @Override
    public String toString() {
        return "PermissionContext{"
                + ", roles=" + roles
                + ", permissions=" + permissions
                + '}';
    }
}
